package com.ffcs.web.utils;

/**
 * @Description:
 * @Copyright: Copyright (c) 2008 FFCS All Rights Reserved
 * @Company: 北京福富软件有限公司
 * @author 王承浩 2008-6-6
 * @version 1.00.00
 * @history:
 * 
 */
public class ExceptionUtils {

	public static String getDetailMsg(Exception e) {
		StringBuffer msg = new StringBuffer();
		msg.append("异常堆栈信息如下: \r\n" + e + "\r\n");
		StackTraceElement[] stack = e.getStackTrace();
		for (int i = 0; i < stack.length; i++) {
			msg.append("\tat " + stack[i] + "\r\n");
		}

		return msg.toString();
	}
}
